package bhbt.controller.admin.sys;


import java.util.HashMap;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import bhbt.controller.core.BaseController;
import bhbt.service.MemberService;
import bhbt.service.WageCurrentService;
import bhbt.service.log.LogKuangService;
import bhbt.service.log.LogMoneyService;






/**
 * Created by Administrator on 2016/3/25.
 */
@Controller
 
public class testController extends BaseController {
	 
	@Resource
	private MemberService memberService;
	 
	@Resource
	private LogMoneyService logMoneyService;
	@Resource
	private LogKuangService logKuangService;
	
	@Resource
	private WageCurrentService wageCurrentService;
    @RequestMapping("admin/sys/test1.shtml")
    public String test1(ModelMap model,HttpServletRequest request, HttpServletResponse response) throws InterruptedException {
    	wageCurrentService.saveKuangCount();
    	wageCurrentService.saveWageCount();
   	  
    	setMessage(model,"提交成功。");
    	Boolean result = true;
    	request.setAttribute("result", result); 
		return "admin/sys/test";
    }
    
    @RequestMapping("admin/sys/test2.shtml")
    public String test2(ModelMap model,HttpServletRequest request, HttpServletResponse response) throws InterruptedException {
    	//测试
    	wageCurrentService.saveWageCount();
    	 
    	setMessage(model,"提交成功。");
    	Boolean result = true;
    	request.setAttribute("result", result); 
		return "admin/sys/test2";
    }
  
}
